package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.stereotype.Service;

import com.zhiyou100.dao.StarDao;
import com.zhiyou100.model.Project;
import com.zhiyou100.model.Star;

@Service
public class StarServiceImpl implements StarService {
	
	private StarDao starDao;

	@Override
	public void save(Star star) {
		
		starDao.save(star);
	}

	@Override
	public void delete(Star star) {
		
		starDao.delete(1);
	}

	@Override
	public ArrayList<Project> findByUserId(int id) {
		
		return starDao.findByUserId(id);
	}

}
